-- GENERATED SPELL FOR [Dark Iron Sapper] --


function spell0_1222(pUnit, Event) --@Sapper Explode,Self--
pUnit:FullCastSpellOnTarget(3204,pUnit)
pUnit:RegisterEvent('Sorts_1222', 3000, 1)
end

function Sorts_1222(pUnit, Event)
local choix_sorts_1222 = math.random(0, 0)
if choix_sorts_1222 == 0 then
pUnit:RegisterEvent('spell0_1222', 1, 1)
end
end

function mob1222_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1222', math.random(1500, 3000), 1)
end

function mob1222_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1222_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1222_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1222, 1, 'mob1222_Action')
RegisterUnitEvent(1222, 2, 'mob1222_Leave')
RegisterUnitEvent(1222, 3, 'mob1222_Kill')
RegisterUnitEvent(1222, 4, 'mob1222_Die')
